#include"httplib.h"

#define SERVER_IP "192.168.44.102"
#define SERVER_PORT 8080
#include<iostream>
using namespace std;

int main()
{
    httplib::Client client(SERVER_IP,SERVER_PORT);


    httplib::MultipartFormData item;  //请求类型
    item.name="file";
    item.filename="1.txt";
    item.content="hello file";
    item.content_type="text/plain";
    

    httplib::MultipartFormDataItems items;  //vector
    items.push_back(item);
    
    auto res = client.Post("/multipart",items);
    cout<<res->status<<endl;
    cout<<res->body<<endl;


    return 0;
}